--module("modules.temp", package.seeall)


print("This is a script from a utf8 file")
print("tolua: 你好! こんにちは! 안녕하세요!")


--[[                                        
 local Color = UnityEngine.Color
 local GameObject = UnityEngine.GameObject
 local ParticleSystem = UnityEngine.ParticleSystem 

 function OnComplete()
     print('OnComplete CallBack')
 end                       
 
 local go = GameObject('go')
 go:AddComponent(typeof(ParticleSystem))
 local node = go.transform
 node.position = Vector3.one                  
 print('gameObject is: '..tostring(go))                 
 --go.transform:DOPath({Vector3.zero, Vector3.one * 10}, 1, DG.Tweening.PathType.Linear, DG.Tweening.PathMode.Full3D, 10, nil)
 --go.transform:DORotate(Vector3(0,0,360), 2, DG.Tweening.RotateMode.FastBeyond360):OnComplete(OnComplete)            
 GameObject.Destroy(go, 2)                  
 --go.name = '123'
 print('delay destroy gameobject is: '..go.name)                                           
]]--local a = {}

package.cpath = package.cpath .. ';C:/Users/xujin/AppData/Roaming/JetBrains/Rider2022.1/plugins/EmmyLua/debugger/emmy/windows/x64/?.dll'
local dbg = require('emmy_core')
dbg.tcpConnect('localhost', 9966)



local isnull = tolua.isnull

print(isnull(a))
a = nil
print(isnull(a))

local b = UnityEngine.GameObject.New()
print(isnull(b))


UnityEngine.GameObject.Destroy(b)
print(isnull(b))

b = nil
print(isnull(b))
